package per.destiny.springtest.dto;

import lombok.*;

import java.util.List;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class Student extends Person {

    public Student(String name,String school){
        super(name);
        this.school = school;
    }
    private String school;

    private List<Book> books;

    @Override
    public String toString() {
        return super.toString() + " Student{" +
                "school='" + school + '\'' +
                ", books=" + books +
                '}';
    }
}
